.opening(class="#{ published === false ? 'post-unpublished' : '' }" data-headerbg="#{headerbg?headerbg:null}")
  if cover
    img.opening-image(src="/images/#{ cover }", alt="")
  else
    for image in public.images._contents
      if image === current.path[1] + (".jpg" || ".png" || ".svg" || ".gif")
        img.opening-image(src="/images/#{ image }", alt="")
  header.opening-header
    .container
      a(href="/").opening-return home
      if title
        h1.opening-title(class="#{ title.length > 30 ? 'opening-title--long' : '' }")!= title
      if date
        time.opening-time(datetime="#{ date }")
          != date

      a.back(href="/articles") Articles
      a.back(href="/") Home